package cn.gson.school.entity.jiuye;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

import cn.gson.school.entity.jiaoxue.StudentEntity;

/**
 * 简历表
 * 
 * @author 华少
 *
 */

@Entity
@Table(name = "tb_jy_resume")
public class ResumeEntity {
	/**
	 * resume_id 简历id 整数
	 *  studentinfo_id 学生详情id 整数 '
	 *  image_id 简历头像 整数 
	 *  resume_name 姓名 文本
	 * resume_sex 性别 整数 
	 * resume_age 年龄 整数 
	 * resume_comedate 出生日期 时间
	 *  resume_telephone 联系电话 文本
	 *  resume_mailbox 邮箱 文本 
	 *   resume_qq QQ 文本 
	 *   resume_graduation 毕业学校 文本
	 * resume_self 自我评价 文本
	 *  resume_salary 意向薪水 文本 
	 *  resume_date 创建时间 时间 
	 *  is_dahui 是否打回
	 * 真假 dahui_time 打回时间 时间
	 * 
	 */
	@Id
	@Column(name = "resume_id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long resumeId;

	@OneToOne
	@JoinColumn(name = "studentinfo_id")
	private StudentEntity studentinfoId;

	@Column(name = "image_id")
	private Long imageId;

	@Column(name = "resume_name")
	private String resumeName;

	@Column(name = "resume_sex")
	private Integer resumeSex;

	@Column(name = "resume_age")
	private Integer resumeAge;

	@Column(name = "resume_comedate")
	@JsonFormat(pattern="yyyy-MM-ddHH:mm:ss")
	private Date resumeComedate;

	@Column(name = "resume_telephone")
	private String resumeTelephone;

	@Column(name = "resume_mailbox")
	private String resumeMailbox;

	@Column(name = "resume_qq")
	private String resumeQQ;

	@Column(name = "resume_graduation")
	private String resumeGraduation;

	@Column(name = "resume_self")
	private String resumeSelf;

	@Column(name = "resume_salary")
	private String resumeSalary;

	@Column(name = "resume_time")
	@JsonFormat(pattern="yyyy-MM-ddHH:mm:ss")
	private Date resumeTime;

	@Column(name = "is_dahui")
	private Integer dahui;

	@Column(name = "dahui_time")
	@JsonFormat(pattern="yyyy-MM-ddHH:mm:ss")
	private Date dahuiTime;

	
	public Long getResumeId() {
		return resumeId;
	}
	public void setResumeId(Long resumeId) {
		this.resumeId = resumeId;
	}
	public StudentEntity getStudentinfoId() {
		return studentinfoId;
	}
	public void setStudentinfoId(StudentEntity studentinfoId) {
		this.studentinfoId = studentinfoId;
	}
	public Long getImageId() {
		return imageId;
	}
	public void setImageId(Long imageId) {
		this.imageId = imageId;
	}
	public String getResumeName() {
		return resumeName;
	}
	public void setResumeName(String resumeName) {
		this.resumeName = resumeName;
	}
	public Integer getResumeSex() {
		return resumeSex;
	}
	public void setResumeSex(Integer resumeSex) {
		this.resumeSex = resumeSex;
	}
	public Integer getResumeAge() {
		return resumeAge;
	}
	public void setResumeAge(Integer resumeAge) {
		this.resumeAge = resumeAge;
	}
	public Date getResumeComedate() {
		return resumeComedate;
	}
	public void setResumeComedate(Date resumeComedate) {
		this.resumeComedate = resumeComedate;
	}
	public String getResumeTelephone() {
		return resumeTelephone;
	}
	public void setResumeTelephone(String resumeTelephone) {
		this.resumeTelephone = resumeTelephone;
	}
	public String getResumeMailbox() {
		return resumeMailbox;
	}
	public void setResumeMailbox(String resumeMailbox) {
		this.resumeMailbox = resumeMailbox;
	}
	public String getResumeQQ() {
		return resumeQQ;
	}
	public void setResumeQQ(String resumeQQ) {
		this.resumeQQ = resumeQQ;
	}
	public String getResumeGraduation() {
		return resumeGraduation;
	}
	public void setResumeGraduation(String resumeGraduation) {
		this.resumeGraduation = resumeGraduation;
	}
	public String getResumeSelf() {
		return resumeSelf;
	}
	public void setResumeSelf(String resumeSelf) {
		this.resumeSelf = resumeSelf;
	}
	public String getResumeSalary() {
		return resumeSalary;
	}
	public void setResumeSalary(String resumeSalary) {
		this.resumeSalary = resumeSalary;
	}
	public Date getResumeTime() {
		return resumeTime;
	}
	public void setResumeTime(Date resumeTime) {
		this.resumeTime = resumeTime;
	}
	
	public Integer getDahui() {
		return dahui;
	}
	public void setDahui(Integer dahui) {
		this.dahui = dahui;
	}
	public Date getDahuiTime() {
		return dahuiTime;
	}
	public void setDahuiTime(Date dahuiTime) {
		this.dahuiTime = dahuiTime;
	}
	@Override
	public String toString() {
		return "ResumeEntity [resumeId=" + resumeId + ", studentinfoId=" + studentinfoId + ", imageId=" + imageId
				+ ", resumeName=" + resumeName + ", resumeSex=" + resumeSex + ", resumeAge=" + resumeAge
				+ ", resumeComedate=" + resumeComedate + ", resumeTelephone=" + resumeTelephone + ", resumeMailbox="
				+ resumeMailbox + ", resumeQQ=" + resumeQQ + ", resumeGraduation=" + resumeGraduation + ", resumeSelf="
				+ resumeSelf + ", resumeSalary=" + resumeSalary + ", resumeTime=" + resumeTime + ", dahui=" + dahui
				+ ", dahuiTime=" + dahuiTime + "]";
	}
}
